#include<iostream>
#include<map>
using namespace std;

int main(){
	string s;
	cin>>s;
	map<char,int> m;
	for (int i=0;i<s.length();i++){
		m[s[i]]++;
	}

	for(auto i : m){
		cout<<i.first<<":"<<i.second<<endl;
	}
	return 0;
}